package com.lemo.bean;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

public class UseFunctionService {

    FunctionService functionService;

    public void setFunctionService(FunctionService functionService) {
        this.functionService = functionService;
    }

    public String sayHello(String word) {
        return functionService.sayHello(word);
    }

    @PostConstruct
    public void s() {
        System.out.println("PostConstruct");
    }

    @PreDestroy
    public void s1() {
        System.out.println("PreDestroy");
    }
}
